package String_learning;

public class Code9 {
    public static void main(String[] args) {
        //1，截取一个手机号码
        String phoneNumber = "12345678901";
        //2，截取手机号码的前面3位
        String start = phoneNumber.substring(0,3);
        //3，截取手机号码后面四位
        String end = phoneNumber.substring(7);
        //4， 拼接
        String result = start + "****" + end;
        //5，打印
        System.out.println(result);
    }
}
